  
  <#if page??>

 
<div class="am-u-lg-12 am-cf">
 <div class="am-fl am-hide-md-down">
 <div class="am-pagination tpl-pagination ">
   共  ${page.total} 条记录 
 </div>
 </div>         
<div class="am-fr">
<ul class="am-pagination tpl-pagination">
  
<#if page.totalpage &gt; 0> 
	<#assign x=1>
	<#assign mx=page.totalpage>
	
	<#if page.page &gt; 3>
		<#assign x=page.page-1>
	</#if>
	<#assign mx=page.page+1>
	<#if mx &gt;page.totalpage >
		<#assign mx=page.totalpage>
	</#if>
    <li  <#if page.page=1> class="am-disabled" </#if> ><a href="?page=${page.page-1}<#if ask.keyword??>&keyword=${ask.keyword}</#if>">«</a></li>    
    <#if page.page &gt; 5>
   <li ><a href="?page=1<#if ask.keyword??>&keyword=${ask.keyword}</#if>">1</a></li>
  </#if>

   <#list x..mx as i>
	<#if i==page.page><li class="am-active"> <a href="#"  >${i} </a></li><#else>	
	 <li><a href="?page=${i}<#if ask.keyword??>&keyword=${ask.keyword}</#if>">${i}</a></li></#if>
	
	</#list>
  	<#if mx &lt; page.totalpage>
     <li><a href="?page=${page.totalpage}<#if ask.keyword??>&keyword=${ask.keyword}</#if>">${page.totalpage}</a></li>
	</#if>
 	 <li <#if page.page==page.totalpage> class="am-disabled" </#if>><a href="?page=${page.page+1}<#if ask.keyword??>&keyword=${ask.keyword}</#if>">»</a></li>
 
 </#if>  
  
  </ul>
 </div>
 
</div>  
</#if>
 